<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <parameter-encoding default-charset="UTF-8"/>
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <h:form id="formDownload">
            <p:accordionPanel id="accDownload">
                <p:tab title="Download" id="tabdownload">
                    <p:outputPanel id="pnlDownload">
                        <p:dataTable id="tableDownload" value="#{treeNode.funcDownload.libList}" var="library" selection="#{treeNode.funcDownload.lib}" rowKey="#{library.libID}" selectionMode="single">
                            <p:ajax event="rowSelect" process="@this" update="@parent" onsuccess="window.location ='download/download.xhtml'"/>
                            <p:column>
                                <h:outputText value="#{library.name}" />
                            </p:column>
                        </p:dataTable>
                    </p:outputPanel>
                </p:tab>
            </p:accordionPanel>
        </h:form>
    </h:body>
</html>

